/*
 * @Author: 黄宇/Hyuishine
 * @Date: 2021-05-28 14:38:06
 * @LastEditors: 徐伟杰
 * @LastEditTime: 2022-09-28 21:18:56
 * @Description:
 * @Email: hyuishine@gmail.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from "@/request/globalPostRequest.js";
// app更新
export function app_update(data, callback) {
  return globalPostRequest({
    url: "/app/update",
    method: "post",
    data,
    callback,
    header: "application/json;charset=UTF-8",
  });
}
// app信息
export function app_info(data, callback) {
  return globalPostRequest({
    url: "/apk/version",
    method: "post",
    data,
    callback,
  });
}

export function get_dict(data, callback) {
  console.log(data);
  return globalPostRequest({
    url: "/system/dict/data/type/" + data.type,
    method: "get",
    callback,
  });
}

export function modifyPwd(data, callback) {
  return globalPostRequest({
    url: "/sys/user/modifyPwd",
    method: "post",
    data,
    callback,
  });
}
// 获取消防设施列表
export function getFaciliListApi(id, callback) {
  return globalPostRequest({
    url: "/system/dict/data/type/wb_code?dictVersion=" + id,
    method: "get",
    callback,
  });
}

// 获取待审核报告详情
export function getFormDetailApi(data, callback) {
  return globalPostRequest({
    url: "/rport/form?reportId=" + data.reportId,
    method: "post",
    callback,
  });
}

// 获取结论性文件
export function getConclusionDetailApi(data, callback) {
  return globalPostRequest({
    url: "/rport/getExport/" + data.reportId,
    method: "get",
    callback,
  });
}

// 获取项目总表文件
export function getProjectDetailApi(data, callback) {
  return globalPostRequest({
    url: "/rport/getByReport/" + data.reportId,
    method: "get",
    callback,
  });
}

// 提交审核报告接口
export function putAuditProcessApi(data, callback) {
  return globalPostRequest({
    url: "/rport/auditProcess",
    method: "post",
    data,
    callback,
  });
}
